package cn.lichenes.service;

import cn.lichenes.entity.User;
import org.springframework.data.domain.Page;

import java.util.Map;

public interface UserService {
    //用户分页查询
    Page<User> findAllUser(String username, int page);
    //修改用户状态
    boolean banUser(Integer id, Integer status);
    //添加新用户
    boolean addUser(User user);
    //用户修改信息
    boolean updateUser(Integer id, String name, String phone, String email);
    //后台获取数据
    Map<String, Object> getIndex();
    //判断邮箱
    Boolean judgeEmail(String email);
    //判断账号
    Boolean judgeAccount(String name);
    //判断手机号
    Boolean judgePhone(String phone);
}
